<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <div id="app">
      <h1>{{ msg }}</h1>

      <input type="text" v-model="msg" />
    </div>

    <p>我能否使用 msg {{ msg }}</p>

    <script src="../lib/vue-3.js"></script>

    <script>
      const { createApp } = Vue;

      const app = createApp({
        data() {
          return {
            msg: "Hello Vue3",
          };
        },
      });

      setTimeout(() => {
        app.mount("#app");
      }, 2000);
    </script>
  </body>
</html>
